package com.lanren.familybookapp.ui.home.interfaces;

import com.lanren.common.base.IView;
import com.lanren.familybookapp.ui.home.bean.BookClassifyBean;
import com.lanren.familybookapp.ui.home.bean.BookPayTypeBean;
import com.lanren.familybookapp.ui.me.bean.BookInfoBean;

import java.util.List;

/**
 * @ClassName IBookkeepingAddModel
 * @Description TODO
 * @Author chongheng.wang
 * @Date 2020/2/14 13:45
 * @Version 1.0
 */
public interface IBookkeepingAddModel {
    interface IBookkeepingEditView extends IView {
        void onSuccessBook(String msg);

        void onSuccessBook(int code, String msg, int pointion);

        void onSuccessClassify(List<BookClassifyBean> bookClassifyBeans);


        void onSuccessBookInfo(List<BookInfoBean> bookInfoBeans);


        void onSuccessPayType(List<BookPayTypeBean> bookPayTypeBeans);
    }

    interface BookkeepingEditModel {
        void onError(int code, String msg);

        void onSuccess(String msg);
    }

    interface BookClassifyModel {
        void onError(int code, String msg);

        void onSuccess(List<BookClassifyBean> bookClassifyBeans);
    }

    interface BookInfoModel {
        void onError(int code, String msg);

        void onSuccess(List<BookInfoBean> bookInfoBeans);
    }

    interface BookPaytypeModel {
        void onError(int code, String msg);

        void onSuccess(List<BookPayTypeBean> bookPayTypeBeans);
    }

}
